# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-precise-runner
pkgver=0.3.1
pkgrel=0
pkgdesc="A lightweight, simple-to-use, RNN wake word listener "
url="https://github.com/MycroftAI/mycroft-precise"
arch="noarch !mips !mips64 !s390x" # Blocked by py3-bbopt
license="Apache-2.0"
depends="python3 py3-bbopt py3-fitipy py3-pyaudio"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://pypi.python.org/packages/source/p/precise-runner/precise-runner-$pkgver.tar.gz"
builddir="$srcdir/precise-runner-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="58c62992666322018c01a22916b3a1014002c7aceda830970f1d0330777b47c981810f5a6a05840695b032cba21c8df09d14b982b24fac3926551a15a8dd99fd  precise-runner-0.3.1.tar.gz"
